const routes = [
  {
    path: '/user',
    component: '../layouts/UserLayout',
  },
  {
    path: '/404',
    component: '../layouts/NoFoundPage',
  },
  {
    path: '/',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        path: '/',
        component: '../layouts/BasicLayout',
        authority: ['admin', 'user'],
        routes: [
          {
            path: '/',
            redirect: '/welcome',
          },
          {
            id: 1,
            name: 'menu.homepage',
            // name: '首页',
            path: '/welcome',
            component: '../pages/Welcome',
            icon: 'HomeOutlined',
          },
          {
            id: 2,
            name: 'menu.AccountManagement',
            // name: '账户管理',
            path: '/customer-access',
            icon: 'UserOutlined',
            routes: [
              {
                path: '/customer-access',
                redirect: '/customer-access/accountmine',
              },
              {
                id: 21,
                name: 'menu.MyAccount',
                // name: '我的账户',
                path: '/customer-access/accountmine',
                component: './Customer-access/AccountMine',
              },
              {
                id: 22,
                name: 'menu.AccountingDetails',
                // name: '账务明细',
                path: '/customer-access/accountingdetails',
                component: './Customer-access/AccountDetails',
              },
              {
                id: 23,
                name: 'menu.FrozenAmount',
                // name: '冻结余额',
                path: '/customer-access/accountfrozen',
                component: './Customer-access/AccountFrozen',
              },
              {
                id: 24,
                name: 'menu.CustomerInformation',
                // name: '客户账户信息',
                path: '/customer-access/customerinformation',
                component: './Customer-access/AccountCustomer',
              },
              {
                id: 99,
                name: '测试',
                // name: '我的账户',
                path: '/customer-access/newcustomers',
                component: './Customer-access/NewCustomers',
              },
            ],
          },
          {
            id: 3,
            icon: 'PropertySafetyOutlined',
            // name: '交易中心',
            name: 'menu.TradingCenter',
            path: '/transaction-center',
            routes: [
              {
                path: '/transaction-center',
                redirect: '/customer-access/accountmine',
              },
              {
                id: 31,
                name: 'menu.ApplicationResultQuery',
                // name: '申请结果查询',
                path: '/transaction-center/applicationresultquery',
                component: './Transaction-center/ApplicationResultQuery',
              },
              {
                id: 32,
                // name: '交易结果查询',
                name: 'menu.TransactionResultQuery',
                path: '/transaction-center/transactionresultquery',
                component: './Transaction-center/TransactionResultQuery',
              },
            ],
          },
          {
            id: 4,
            icon: 'TransactionOutlined',
            // name: '全球付款',
            name: 'menu.GlobalPayment',
            path: '/global-payments',
            routes: [
              {
                path: '/global-payments',
                redirect: '/global-payments/exchange',
              },
              {
                id: 41,
                // name: '换汇',
                name: 'menu.Exchange',
                path: '/global-payments/exchange',
                component: './Global-Payments/Exchange',
              },
              {
                id: 42,
                // name: '全球付款',
                name: 'menu.GlobalPayment',
                path: '/global-payments/globalpayments',
                component: './Global-Payments/GlobalPayments',
              },
              {
                id: 43,
                // name: '批量全球付款',
                name: 'menu.BatchGlobalPayment',
                path: '/global-payments/batchglobalpayment',
                component: './Global-Payments/BatchGlobalPayment',
              },
            ],
          },
          {
            id: 5,
            icon: 'UserAddOutlined',
            // name: '全球付款',
            name: 'menu.Beneficiary',
            path: '/beneficiary',
            routes: [
              {
                path: '/beneficiary',
                redirect: '/beneficiary/beneficiaryinformation',
              },
              {
                id: 51,
                // name: '换汇',
                name: 'menu.BeneficiaryInformation',
                path: '/beneficiary/beneficiaryinformation',
                component: './Beneficiary/BeneficiaryInformation',
              },
            ],
          },
          {
            id: 6,
            icon: 'SettingOutlined',
            // name: '设置',
            name: 'menu.SetUp',
            path: '/set-up',
            routes: [
              {
                path: '/beneficiary',
                redirect: '/set-up/accountpasswordset',
              },
              {
                id: 61,
                // name: '账号与密码设置',
                name: 'menu.AccountPasswordSettings',
                path: '/set-up/accountpasswordset',
                component: './Set-Up/AccountPasswordSet',
              },
              {
                id: 62,
                // name: '通知路径',
                name: 'menu.NotificationPath',
                path: '/set-up/setnotificationpath',
                component: './Set-Up/SetNotificationPath',
              },
            ],
          },
        ],
      },
    ],
  },
];

export default routes;
